package com.baidu.project.chart8;

public class Test {
    public Test() {
    }

    public static void main(String[] args) {
        PrototypeManager pm = PrototypeManager.getPrototypeManager();
        OfficialDocument doc1 = pm.getOfficialDocument("far");
        doc1.display();
        OfficialDocument doc2 = pm.getOfficialDocument("far");
        doc2.display();
        System.out.println(doc1 == doc2);
    }
}
